/* 全局样式 */
:root {
    --primary-color: #00d4aa;
    --secondary-color: #0066cc;
    --background-dark: #0a0a0a;
    --background-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-color: #00ff88;
    --gradient-primary: linear-gradient(135deg, #00d4aa, #0066cc);
    --gradient-secondary: linear-gradient(135deg, #ff6b6b, #4ecdc4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* 章节样式 */
.section {
    min-height: 100vh;
    padding: 100px 0 50px;
    display: flex;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 开篇样式 */
.intro-section {
    background: radial-gradient(circle at center, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 3rem;
    height: 500px;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 500"><rect width="800" height="500" fill="%231a1a1a"/><path d="M200 150 L400 120 L500 200 L450 300 L300 350 L200 280 Z" fill="%23222" stroke="%23333"/></svg>') center/cover;
    border-radius: 20px;
    overflow: hidden;
}

.province-highlight {
    position: absolute;
    padding: 10px 20px;
    background: rgba(0, 212, 170, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.province-highlight:hover {
    transform: scale(1.1);
    background: rgba(0, 212, 170, 0.3);
}

.yunnan {
    top: 70%;
    left: 20%;
}

.guizhou {
    top: 60%;
    left: 45%;
}

.sichuan {
    top: 40%;
    left: 35%;
}

.chongqing {
    top: 45%;
    left: 55%;
}

.province-name {
    font-weight: 600;
    color: var(--text-primary);
}

.energy-icon {
    width: 20px;
    height: 20px;
    margin: 5px auto 0;
    border-radius: 50%;
}

.energy-icon.solar {
    background: radial-gradient(circle, #ffeb3b, #ff9800);
    animation: pulse 2s infinite;
}

.energy-icon.hydro {
    background: radial-gradient(circle, #03a9f4, #2196f3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.timeline-container {
    margin: 3rem 0;
}

.timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
}

.timeline-item {
    position: relative;
    text-align: center;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 10px auto;
    animation: glow 2s infinite;
}

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--primary-color); }
    50% { box-shadow: 0 0 20px var(--primary-color); }
    100% { box-shadow: 0 0 5px var(--primary-color); }
}

.intro-text {
    font-size: 1.2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* 政策解读样式 */
.policy-section {
    background: var(--background-light);
}

.policy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.policy-card {
    background: rgba(26, 26, 26, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.policy-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.chart-container {
    position: relative;
    height: 300px;
}

.policy-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.policy-item {
    background: rgba(26, 26, 26, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.policy-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 技术创新样式 */
.tech-section {
    background: var(--background-dark);
}

.tech-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tech-item {
    background: rgba(26, 26, 26, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.tech-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-data {
    background: rgba(26, 26, 26, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

/* 成果展望样式 */
.result-section {
    background: var(--background-light);
}

.result-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.comparison-slider {
    background: rgba(26, 26, 26, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.slider-container {
    position: relative;
    margin-bottom: 1rem;
}

.before-after {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
}

.before-after img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-img {
    clip-path: inset(0 50% 0 0);
}

.slider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: col-resize;
}

.achievement-data {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.data-card {
    background: rgba(26, 26, 26, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 170, 0.3);
    text-align: center;
}

.data-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.countdown-container {
    background: rgba(26, 26, 26, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 170, 0.3);
    text-align: center;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.countdown-item {
    background: var(--gradient-primary);
    padding: 1rem;
    border-radius: 10px;
    min-width: 80px;
}

.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.countdown-item label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 页脚样式 */
.footer {
    background: var(--background-dark);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .policy-grid,
    .result-content {
        grid-template-columns: 1fr;
    }
    
    .tech-showcase {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .countdown {
        flex-wrap: wrap;
    }
    
    .countdown-item {
        min-width: 60px;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 212, 170, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
